package a09_proxy;

public class Client {

	public static void main(String[] args) {
		Proxy proxy = new Proxy();
		proxy.execute();
		/*
		 * 以聚合的形式持有一个target对象，更像是一个装饰器
		 */
		System.out.println("following like a decoretor");
		Proxy2 proxy2 = new Proxy2(proxy);
		proxy2.execute();

	}

}
